//#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
int main()
{
	int arr[10] = {0};
	int i,j,max,min;
	for(i=0;i<10;i++)
	scanf("%d",&arr[i]);
	printf("\n");
	max = min = arr[0];
	for(j=1;j<10;j++)
	{
		if(arr[j] > max)
		max = arr[j];
		if(arr[j] < min)
		min = arr[j];
		
	}
	
	printf("max=%d,min=%d\n",max,min);
	
	return 0;
	
}
